home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hot Shareware 37
/
hot37.iso
/
FICHEROS
/
WEDU
/
MICSCOP3.ZIP
/
MENUSYS.CST
/
00038_Script_Common Nav Code
< prev
next >
Wrap
Text File
|
1998-05-18
|
2KB
|
77 lines
-- sent by the navigation box from each 'LessonX' cast
-- sent by a 'mousedown'
-- It calls various routines in 'Scripts' cast to do the navigating
on NavigationBox themouse, MaxContents, MaxTests
case GetNavButton (themouse) of
#C1:
if MaxContents >= 1 then
Depress "C1 Down"
DoContent 1
end if
#C2:
if MaxContents >= 2 then
Depress "C2 Down"
DoContent 2
end if
#C3:
if MaxContents >= 3 then
Depress "C3 Down"
DoContent 3
end if
#C4:
if MaxContents >= 4 then
Depress "C4 Down"
DoContent 4
end if
#C5:
if MaxContents >= 5 then
Depress "C5 Down"
DoContent 5
end if
#T1:
if MaxTests >= 1 then
Depress "T1 Down"
DoTest 1
end if
#T2:
if MaxTests >= 2 then
Depress "T2 Down"
DoTest 2
end if
#T3:
if MaxTests >= 3 then
Depress "T3 Down"
DoTest 3
end if
#T4:
if MaxTests >= 4 then
Depress "T4 Down"
DoTest 4
end if
end case
end NavigationBox
on GetNavButton APoint
if inside(Apoint, rect(436,458,451,480)) then return #C1
if inside(Apoint, rect(452,458,467,480)) then return #C2
if inside(Apoint, rect(468,458,482,480)) then return #C3
if inside(Apoint, rect(483,458,499,480)) then return #C4
if inside(Apoint, rect(500,458,516,480)) then return #C5
if inside(Apoint, rect(523,458,540,480)) then return #T1
if inside(Apoint, rect(541,458,556,480)) then return #T2
if inside(Apoint, rect(557,458,572,480)) then return #T3
if inside(Apoint, rect(573,458,599,480)) then return #T4
end
on Depress NavCastMember
-- sprite 45 has to be upgraded to the Down Button Then the Highlite Button
puppetsprite 45, true
set the member of sprite 45 to member NavCastMember
updatestage
repeat while the mouseDown
end repeat
puppetsprite 45, false -- score takes over
end Depress